delete from dbo.stdtabelasvar where tabela = 'TDU_Mecanico';
delete from dbo.stdcamposvar where tabela = 'TDU_Mecanico';
insert into dbo.stdtabelasvar values('TDU_Mecanico', 'ERP');
insert into dbo.stdcamposvar (tabela, campo, descricao, texto, visivel, ordem, valordefeito) values('TDU_Mecanico', 'CDU_Id', 'ID', 'Id', 1, 1, 0);
insert into dbo.stdcamposvar (tabela, campo, descricao, texto, visivel, ordem, valordefeito) values('TDU_Mecanico', 'CDU_Nome', 'Nome', 'Nome', 1, 2, '');
go

drop table TDU_Mecanico
go

CREATE TABLE [dbo].[TDU_Mecanico](
	[CDU_Id] [bigint] IDENTITY(1,1) NOT NULL,
	[CDU_Nome] [varchar](150) NOT NULL,	
 CONSTRAINT [PK_TDU_Mecanico] PRIMARY KEY CLUSTERED 
(
	[CDU_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
